package com.xiaoming.e3mall;

import com.xiaoming.e3mall.common.utils.E3Result;
import com.xiaoming.e3mall.pojo.TbItem;

import java.util.List;

public interface CartService {

    E3Result addCart(long userId, long itemId, int num);
    E3Result mergeCart(Long userId, List<TbItem> itemList);
    List<TbItem> getCartList(long userId);
    E3Result updateCartNum(long userId, long itemId, int num);
    E3Result deleteCartItem(long userId, long itemId);

    E3Result clearCartItem(Long id);
}
